package com.hskn.hss.module.userrole.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.userrole.entity.SysUserRole;

import java.util.List;

/**
 * <p>
 * 用户角色表 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-04-29
 */
public interface ISysUserRoleService extends IService<SysUserRole> {

    AjaxResult insert(JSONObject params) throws HssException;

    AjaxResult deleteByid(JSONObject params) throws HssException;

    void deleteByUid(String uid) throws HssException;

    AjaxResult update(JSONObject params) throws HssException;

    AjaxResult updateByUserid(String uid, String[] rid) throws HssException;

    SysUserRole getInfoById(JSONObject params) throws HssException;

    List<SysUserRole> getListByMap(JSONObject params) throws HssException;

    List<SysUserRole> getSysUserRoleListByRoleId(String roleId);
}
